package com.ruoyi.platform.system.role.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 角色信息表
 *
 * @author lcf
 * @version 0.0.1
 * @since 2020-11-16 01:47:41
 */
@Data
@NoArgsConstructor
public class RoleDO {
    /**
     * 角色ID
     */
    private Long roleId;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 新增/查询
     */
    public RoleDO(String roleName) {
        this.roleName = roleName;
    }

    /**
     * 修改
     */
    public RoleDO(long roleId, String roleName) {
        this.roleId = roleId;
        this.roleName = roleName;
    }
}
